<html><head><title>GetEntityAttribute</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GetEntityAttribute()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>GetEntityAttribute</b></font>(#Entity, Attribute)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Get the specified attribute of the given entity. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
The entity to use. 

</td></tr>
<tr><td><i>Attribute</i></td>
<td> 
The attribute to get. The following attributes are available: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Entity_Friction</font>        : Get the friction value.
  <font color="#924B72">#PB_Entity_Restitution</font>     : Get the restitution value.
  <font color="#924B72">#PB_Entity_LinearVelocity</font>  : Get the current linear velocity (all axis).
  <font color="#924B72">#PB_Entity_LinearVelocityX</font> : Get the current linear velocity on 'x' axis.
  <font color="#924B72">#PB_Entity_LinearVelocityY</font> : Get the current linear velocity on 'y' axis.
  <font color="#924B72">#PB_Entity_LinearVelocityZ</font> : Get the current linear velocity on 'z' axis.
  <font color="#924B72">#PB_Entity_MassCenterX</font>     : Get the mass center 'x' position.
  <font color="#924B72">#PB_Entity_MassCenterY</font>     : Get the mass center 'y' position.
  <font color="#924B72">#PB_Entity_MassCenterZ</font>     : Get the mass center 'z' position.
  <font color="#924B72">#PB_Entity_NbSubEntities</font>   : Get the number of sub-entities.
  <font color="#924B72">#PB_Entity_LinearSleeping</font>  : Get the minimum linear velocity value under which the entity will be sleeping.
  <font color="#924B72">#PB_Entity_AngularSleeping</font> : Get the minimum angular velocity value under which the entity will be sleeping.
  <font color="#924B72">#PB_Entity_DeactivationTime</font>: Get the time to wait (in milliseconds) before putting the entity in sleep mode when the above conditions are met.
  <font color="#924B72">#PB_Entity_IsActive</font>        : Get if an entity body is active (not sleeping).
  <font color="#924B72">#PB_Entity_AngularVelocityX</font>: Get the current angular velocity on 'x' axis.
  <font color="#924B72">#PB_Entity_AngularVelocityY</font>: Get the current angular velocity on 'y' axis.
  <font color="#924B72">#PB_Entity_AngularVelocityZ</font>: Get the current angular velocity on 'z' axis.
  <font color="#924B72">#PB_Entity_AngularVelocity</font> : Get the current angular velocity (all axis).
  <font color="#924B72">#PB_Entity_HasContactResponse</font>: Check if the entity body has contacts.
  <font color="#924B72">#PB_Entity_ScaleX</font>          : Get the current entity scale on 'x' axis.
  <font color="#924B72">#PB_Entity_ScaleY</font>          : Get the current entity scale on 'y' axis.
  <font color="#924B72">#PB_Entity_ScaleZ</font>          : Get the current entity scale on 'z' axis.
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns the value of the specified attribute or 0 if the entity does not support the attribute. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="setentityattribute.html">SetEntityAttribute()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=freeentityjoints.html>FreeEntityJoints()</a> - <a href=index.html>Entity Index</a> - <a href=getentitycollisiongroup.html>GetEntityCollisionGroup()</a> ->

</body></html>